package org.water.common.exception;
/**
 * 系统异常编码
 * @author qzy
 *
 */
public enum SysCode {

	ok(200,"正常访问"),
	exception(0,"未知异常"),
	nologin(100,"未登录"),
	unauthorized(101,"未授权访问");
	
	private int code;
	private String msg;
	SysCode(int code,String msg)
	{
		this.code=code;
		this.msg=msg;
	}
	/**
	 * 获取编码
	 * @return
	 */
	public int getCode()
	{
		return this.code;
	}
	/**
	 * 获取描述信息
	 * @return
	 */
	public String getMsg()
	{
		return this.msg;
	}
}
